package splitter;

/**
 * 代码分割器配置类
 */
public class SplitterConfig {
    private SplitterType type;
    private int chunkSize;
    private int chunkOverlap;

    /**
     * 创建一个新的代码分割器配置
     */
    public SplitterConfig() {
        this.type = SplitterType.LANGCHAIN;
        this.chunkSize = 1000;
        this.chunkOverlap = 200;
    }

    /**
     * 创建一个新的代码分割器配置
     * 
     * @param type 分割器类型
     * @param chunkSize 代码块大小
     * @param chunkOverlap 代码块重叠大小
     */
    public SplitterConfig(SplitterType type, int chunkSize, int chunkOverlap) {
        this.type = type;
        this.chunkSize = chunkSize;
        this.chunkOverlap = chunkOverlap;
    }

    public SplitterType getType() {
        return type;
    }

    public void setType(SplitterType type) {
        this.type = type;
    }

    public int getChunkSize() {
        return chunkSize;
    }

    public void setChunkSize(int chunkSize) {
        this.chunkSize = chunkSize;
    }

    public int getChunkOverlap() {
        return chunkOverlap;
    }

    public void setChunkOverlap(int chunkOverlap) {
        this.chunkOverlap = chunkOverlap;
    }
}